package com.zzxy.mybatis12.entity;

import com.zzxy.mybatis12.entity.dao.UserDaoimpl;
import com.zzxy.mybatis12.entity.mapper.UserMapper;

public class User {
    @org.junit.Text2() {
        UserDaoimpl dao = new UserDaoimpl(sqlSession);
        User user = dao.findUserByDao(1);
        System.out.println(user);
    }
    @After
    public void after() {
        sqlSession.close():

    }
    @org.junit.Test
    public void test3() {
        UserMapper mapper = sqlMapper.getMapper(UserMapper.class)
        User user = mapper.findUserById(1);
        System.out.println(user);
    }


}
